package com.spa.application.dto.admin;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.Date;

@Data
@JsonInclude
public class ShopUserExportDTO {

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ExcelProperty(value = "ID")
    @ColumnWidth(20)
    private String id;

    @ExcelProperty(value = "门店登录账号")
    @ColumnWidth(15)
    private String phone;

    @ExcelProperty(value = "所属人员")
    @ColumnWidth(15)
    private String name;

    @ExcelProperty(value = "所属门店")
    @ColumnWidth(20)
    private String shopName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelProperty(value = "创建时间")
    @ColumnWidth(20)
    private Date createTime;

}
